import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *

testCase="DBshop036_添加客户扩展信息"
firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu2(firefox,"客户管理","客户扩展信息")
firefox.find_element_by_link_text("添加扩展信息").click()
firefox.find_element_by_id("field_name").send_keys("123")
firefox.find_element_by_id("field_title").send_keys("优秀客户")
firefox.find_elements_by_xpath("//option")[1].click()
firefox.find_element_by_xpath("//button").click()

try:
    firefox.find_element_by_xpath("//td[text()='123']")

    writeLog("%s 测试通过" % testCase)
except:

    writeLog("%s 测试失败" % testCase)
    getPhoto(firefox)
